        <!-- BOX DIREITO -->
        <td colspan="2" valign="top" style="border-left:1px solid #bbb; border-right:1px solid #ccc; padding:20px 12px;">
            <div id="titulo_pagina">Contatos</div>
            <p>Manuten&ccedil;&atilde;o dos Contatos.</p>
   			<script type="text/javascript">
   				<?php
   				//Variaveis para configuracao da GRID
   				//$gridName - ID da GRID
   				//$controller - Controlador da GRID
   				//$titleList - Titulo da GRID
   				//$titleForm - Titulo do Formulario
   				$gridName = "gridContatos";
   				$controller = "contatos";
   				$titleList = "Lista de Contatos";
   				$titleForm = "Formul&aacute;rio de Contatos";
   				?>
   				//Array com todos os campos da tabela.
				var arr_fields = [
				                  {nome:'id_contato',label:'Id', tp_obj: 'hid', tipo : 'str', grid:{name:'id_contato',index:'tb_oportunidades_contatos.id_contato', width:15, def_order:true, order:'asc'}},
				                  {nome:'nome',label:'Nome', tp_obj: 'txt', tipo : 'str', grid:{name:'nome',index:'tb_contatos.nome', width:80, def_order:false,order:''}},
				                  {nome:'id_conta_fk',label:'Conta', tp_obj: 'sel', tipo : 'str', grid:{name:'nome_fantasia',index:'tb_contas.nome_fantasia', width:100, def_order:false,order:''}},
				                  {nome:'email',label:'E-mail', tp_obj: 'txt', tipo : 'str', grid:{name:'email',index:'tb_contatos.email', width:70, def_order:false, order:'', sortable:false}},
				                  {nome:'telefone',label:'Telefone', tp_obj: 'txt', tipo : 'str', grid:{name:'telefone',index:'tb_contatos.telefone', width:45, def_order:false, order:'', sortable:false}},
				                  {nome:'hid_oper',label:'', tp_obj: 'hid', tipo : 'str', grid:null}
					              	];

				//Variavel com o codigo da linha selecionada
				var editValue = null;
				$(document).ready(function(){
					var arr_fld_grid = new Array();
					var arr_fld_labels = new Array();
					var fld_sort_name = "";
					var fld_sort_order = "";

					//Monta os arrays com os labels e os campos
					for(i=0; i<arr_fields.length; i++)
					{
						if(arr_fields[i].grid != null)
						{
							arr_fld_grid.push(arr_fields[i].grid);
							arr_fld_labels.push(arr_fields[i].label);
							if(arr_fields[i].grid.def_order)
							{
								fld_sort_name = arr_fields[i].grid.name;
								fld_sort_order = arr_fields[i].grid.order;
							}
						}
					}

					//Montagem da GRID
					jQuery("#<?php echo $gridName; ?>").jqGrid({
					   	url:'<?php echo base_url().$controller."/listAll"?>',
						datatype: "json",
					   	colNames:arr_fld_labels,
					   	colModel:arr_fld_grid,
					   	rowNum:10,
					   	rowList:[5,10,20,30],
					   	height: 'auto',
					   	width:'850',
					   	pager: '#p<?php echo $gridName; ?>',
					   	sortname: fld_sort_name,
					    viewrecords: true,
					    sortorder: fld_sort_order,
					    caption:'<?php echo $titleList; ?>',
					   	grouping:true,
					   	groupingView : {
					   		groupField : ['nome_fantasia'],
					   		groupColumnShow : [false],
					   		groupText : ['Conta: <b>{0}</b>']
					   	},
					    onSelectRow: function(id){ 
							if(id && id!==editValue){ 
								editValue=id; 
							} 
						}
					})
					.navGrid('#p<?php echo $gridName; ?>',{edit:false,add:false,del:false,search:false,refresh:false},{},{},{})
				});

				//Validacao e envio do formulario
				$(function() {

					var id_contato = $("#id_contato"), 
					id_contato_fk = $("#id_contato_fk"),
					id_conta_fk = $("#id_conta_fk"),
					nome = $("#nome"),
					telefone = $("#telefone"),
					celular = $("#celular"),
					fax = $("#fax"),
					email = $("#email"),
					endereco = $("#endereco"),
					numero = $("#numero"),
					bairro = $("#bairro"),
					cidade = $("#cidade"),
					estado = $("#estado"),
					cep = $("#cep"),
					complemento = $("#complemento"),
					data_nascimento = $("#data_nascimento"),
					departamento = $("#departamento"),
					assistente = $("#assistente"),
					telefone_assistente = $("#telefone_assistente"),
					observacoes = $("#observacoes"),
					hid_oper = $("#hid_oper"),
					allFields = $([])
									.add(id_contato)
									.add(id_contato_fk)
									.add(id_conta_fk)
									.add(nome)
									.add(telefone)
									.add(celular)
									.add(fax)
									.add(email)
									.add(endereco)
									.add(numero)
									.add(bairro)
									.add(cidade)
									.add(estado)
									.add(cep)
									.add(complemento)
									.add(data_nascimento)
									.add(departamento)
									.add(assistente)
									.add(telefone_assistente)
									.add(observacoes)
									.add(hid_oper),
					tips = $(".validateTips");
						    			
				    $("#dialog-form").dialog({
					    bgiframe: true,
					    autoOpen: false,
					    height: 560,
					    width: 800,
					    modal: true,
					    buttons: {
						    'Cancelar': function() {
							    $(this).dialog('close');
							    clearFormContacts();
						    }, 
						    'Salvar': function()
						    {
								var bValid = true;
								allFields.removeClass('ui-state-error');

  								bValid = bValid && validation(nome, "Nome", "required", tips, 0, 0);
								bValid = bValid && validation(nome, "Nome", "length", tips, 1, 250);
								bValid = bValid && validation(id_conta_fk, "Conta", "required", tips, 0, 0);

								if(bValid)
								{
						            $('#dialog-wait').dialog({ 
						            	closeOnEscape: false,
						            	draggable: false,
						            	modal: true,
						            	resizable: false  
						            });
									$.ajax({
										  type: 'POST',
										  url: '<?php echo base_url().$controller."/save"?>',
										  data: {
	      										'id_contato' : id_contato.val(), 
	      		            					'id_contato_fk' : id_contato_fk.val(),
	      		            					'id_conta_fk' : id_conta_fk.val(),
	      		            					'nome' : nome.val(),
	      		            					'telefone' : telefone.val(),
	      		            					'celular' : celular.val(),
	      		            					'fax' : fax.val(),
	      		            					'email' : email.val(),
	      		            					'endereco' : endereco.val(),
	      		            					'numero' : numero.val(),
	      		            					'bairro' : bairro.val(),
	      		            					'cidade' : cidade.val(),
	      		            					'estado' : estado.val(),
	      		            					'cep' : cep.val(),
	      		            					'complemento' : complemento.val(),
	      		            					'data_nascimento' : data_nascimento.val(),
	      		            					'departamento' : departamento.val(),
	      		            					'assistente' : assistente.val(),
	      		            					'telefone_assistente' : telefone_assistente.val(),
	      		            					'observacoes' : observacoes.val(),
	      		            					'hid_oper' : hid_oper.val()},
										  success: function(msg){
										  		var type = msg.substr(0,3);
												var msgs = msg.substr(4);
										  		if(type != "err")
										  		{
													showMsg(msgs);
													$("#<?php echo $gridName; ?>").trigger("reloadGrid");
													editValue = null;
													clearFormContacts();
													allFields.val('').removeClass('ui-state-error');
										  			document.getElementById('error').innerHTML= "";
										  			document.getElementById("error").style.display='none';
										  			tips.removeClass('ui-state-highlight', 1500);
													$("#dialog-form").dialog('close');
										  		}
										  		else
										  		{
										  			document.getElementById('error').innerHTML= msgs;
										  			document.getElementById("error").style.display="";
											  	}
											}
									});
									$('#dialog-wait').dialog('close');
								}
							}
					    },
					    open: function() {
			                $('.ui-dialog-buttonpane').
			                    find('button:contains("Cancelar")').button({
			                    icons: {
			                        primary: 'cancelIcon'
			                    }
			                });
			                $('.ui-dialog-buttonpane').
		                    find('button:contains("Salvar")').button({
		                    icons: {
		                        primary: 'saveIcon'
		                    }
		                });
			             },
					    close: function() {				
					    }
				    });
				});		
			</script>
			<script>
				$(document).ready(function() {
		            $("#bt_add").button({
			            icons: {primary: "addIcon"}
		            }).click(function(){
						$('#dialog-form').dialog('option', 'title');
			            $('#dialog-form').dialog('open');
						$('#hid_oper').val("add");
		    		});
	
		            $("#bt_edit").button({
			            icons: {primary: "editIcon"}
		            }).click(function(){
					   if(editValue != null)
					   {
							$('#dialog-form').dialog('open');
				            $('#dialog-wait').dialog({ 
					            	closeOnEscape: false,
					            	draggable: false,
					            	modal: true,
					            	resizable: false  
					            });
							$.ajax({
		                        type: "POST",
		                        url: '<?php echo base_url().$controller."/getById"?>',
		                        data: {id:editValue},
		                        success: function(msg) 
		                        {
									eval("var edi = "+msg);
									
									$("#id_contato").val(edi.rows[0].cell[0]); 
									$("#id_contato_fk").val(edi.rows[0].cell[1]);
									$("#id_conta_fk").val(edi.rows[0].cell[2]);
									$("#nome").val(edi.rows[0].cell[3]);
									$("#telefone").val(edi.rows[0].cell[4]);
									$("#celular").val(edi.rows[0].cell[5]);
									$("#fax").val(edi.rows[0].cell[6]);
									$("#email").val(edi.rows[0].cell[7]);
									$("#endereco").val(edi.rows[0].cell[8]);
									$("#numero").val(edi.rows[0].cell[9]);
									$("#bairro").val(edi.rows[0].cell[10]);
									$("#cidade").val(edi.rows[0].cell[11]);
									$("#estado").val(edi.rows[0].cell[12]);
									$("#cep").val(edi.rows[0].cell[13]);
									$("#complemento").val(edi.rows[0].cell[14]);
									$("#data_nascimento").val(edi.rows[0].cell[15]);
									$("#departamento").val(edi.rows[0].cell[16]);
									$("#assistente").val(edi.rows[0].cell[17]);
									$("#telefone_assistente").val(edi.rows[0].cell[18]);
									$("#observacoes").val(edi.rows[0].cell[19]);
									$('#hid_oper').val("upd");


									if($("#id_conta_fk").val() != "")
									{
										changeAccountContatos();
									}

									if($("#id_contato_fk").val() != "")
									{
										changeContactContatos("");
									}
		                        }
							});
							$('#dialog-wait').dialog('close');
					   }
					   else
					   {
						   dialogMessage('Selecione uma linha','dialog-message');   
							$("#<?php echo $gridName; ?>").trigger("reloadGrid");
					   }
					});

		            $("#bt_delete").button({
			            icons: {primary: "deleteIcon"}
		            }).click(function(){
		            	if(editValue != null)
					   	{
				   			$("#dialog-confirm").dialog({
				   				resizable: false,
				   				height:150,
				   				width:400,
				   				modal: true,
				   				buttons: {
				   					'Confirmar': function() {
        					            $('#dialog-wait').dialog({ 
        					            	closeOnEscape: false,
        					            	draggable: false,
        					            	modal: true,
        					            	resizable: false  
        					            });
										$.ajax({
				                    		type: "POST",
				                    		url: '<?php echo base_url().$controller."/delete"?>',
				                    		data: {id:editValue},
				                    		success: function(msg) 
				                    		{
										  		var type = msg.substr(0,3);
												var msgs = msg.substr(4);

												if(type != "err")
												{
						   							showMsg(msgs);
												}
												else
												{
													dialogMessage(msgs,'dialog-message');   
												}
						       					$("#<?php echo $gridName; ?>").trigger("reloadGrid");
						       					editValue = null;
				                    		}
										});
										$('#dialog-wait').dialog('close');
				   						$(this).dialog('close');
				   					},
				   					Cancelar: function() {
				   						$(this).dialog('close');
				   					}
				   				}
				   			}); 
					   	}
				   		else
				   		{
							   dialogMessage('Selecione uma linha','dialog-message');   
								$("#<?php echo $gridName; ?>").trigger("reloadGrid");
					   	}
					});

		            $("#bt_search").button({
			            icons: {primary: "searchIcon"}
		            }).click(function(){
						jQuery("#<?php echo $gridName; ?>").jqGrid('searchGrid',{multipleSearch:true});
		    		});

		            $("#bt_refresh").button({
			            icons: {primary: "refreshIcon"}
		            }).click(function(){
		            	$("#<?php echo $gridName; ?>").trigger("reloadGrid");
		    		});
		        });

				$(function() {
					$( "#tabs-contato" ).tabs();
					$.datepicker.setDefaults( $.datepicker.regional[ "pt-BR" ] );
					$("#data_nascimento").datepicker();
				});

				function changeAccountContatos()
				{
					var id_conta = $("#id_conta_fk").val();
					$.ajax({
	                    type: "POST",
	                    url: "<?php echo base_url(); ?>contas/getAccount",
	                    data: "id_conta=" + id_conta,
	                    success: function(nome_fantasia) 
	                    {
	                    	if(nome_fantasia != "")
	                    	{
	                    		$("#span_conta").html(nome_fantasia.substring(0,35));
	                    	}
	                    	else
	                    	{
	                    		$("#span_conta").html("<b>Conta n&atilde;o cadastrada!!</b>");
    	                    }
		                }
	            	});	 
    			}

    			function setAccountContatos(param)
    			{
					$("#id_conta_fk").val(param);
					changeAccountContatos();
        		}

        		function openAccountContatosUniq()
        		{
					var width = 680;
					var height = 570;

					var left = 99;
					var top = 99;

					window.open("<?php echo base_url();?>oportunidades/openAccountUniq/2",'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
            	}

        		function openContactContatosUniq()
        		{
					var width = 680;
					var height = 570;

					var left = 99;
					var top = 99;

					window.open("<?php echo base_url();?>oportunidades/openContactsUniq/1",'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
            	}

    			function changeContactContatos(tipo)
    			{
 					var id_contato = $("#id_contato_fk").val();

 					$.ajax({
	                    type: "POST",
	                    url: "<?php echo base_url(); ?>contatos/getContact",
	                    data: "id_contato=" + id_contato,
	                    success: function(nome) 
	                    {
	                    	if(nome != "")
	                    	{
	                    		$("#span_contato").html(nome);
	                    	}
	                    	else
	                    	{
	                    		$("#span_contato").html("<b>Contato n&atilde;o cadastrado!!</b>");
    	                    }
		                }
	            	});	 
        		}
        		
    			function setContactContatos(param, tipo)
    			{
					$("#id_contato_fk").val(param);
					changeContactContatos(tipo);
        		}

    			function clearFormContacts()
    			{
        			$("#id_contato").val("");
  					$("#nome").val("");
					$("#id_conta_fk").val("");
					$("#id_contato_fk").val("");
					$("#telefone").val("");
					$("#celular").val("");
					$("#fax").val("");
					$("#email").val("");
					$("#endereco").val("");
					$("#numero").val("");
					$("#bairro").val("");
					$("#cidade").val("");
					$("#estado").val("");
					$("#cep").val("");
					$("#complemento").val("");
					$("#data_nascimento").val("");
					$("#departamento").val("");
					$("#assistente").val("");
					$("#telefone_assistente").val("");
					$("#observacoes").val("");
					$("#span_conta").html("");
					$("#span_contato").html("");
        		}
	
    		</script> 
			<style>
            	#toolbar {
            		padding: 2px 4px;
					width:840px;
            	}
        	</style>
			<div align="center">
                <div id="toolbar" class="ui-widget-header ui-corner-all">
                	<table border="0" cellpadding="0" cellspacing="0" width="100%">
                		<tr>
                			<td align="left" width="33%">
            				<?php 
            					$actions = $this->session->userdata('v_actions');
            					
            					if(in_array("ADD", $actions[$controller]))
            					{
            					?>
            	                <button id="bt_add">Novo</button>
            	                <?php 
            					}
            					
            					if(in_array("UPD", $actions[$controller]))
            					{
            	                ?>
                            	<button id="bt_edit">Editar</button>
            	                <?php 
            					}
            					
            					if(in_array("DEL", $actions[$controller]))
            					{
            	                ?>
                            	<button id="bt_delete">Deletar</button>
                            	<?php 
            					}
                            	?>
                			</td>
                			<td align="center" width="34%">
            	                <?php 
            					if(in_array("PES", $actions[$controller]))
            					{
            	                ?>
                            	<button id="bt_search">Pesquisar</button>
            	                <?php 
            					}
            					
            					if(in_array("REF", $actions[$controller]))
            					{
            	                ?>
                            	<button id="bt_refresh">Recarregar</button>
                            	<?php 
            					}
                            	?>
                			</td>
                			<td align="right" width="33%">
                				&nbsp;
                			</td>
                		</tr>
                	</table>
                </div>
				<table id="<?php echo $gridName; ?>"></table>
				<div id="p<?php echo $gridName; ?>"></div>
			</div>
			<div id="dialog-form" title="<?php echo $titleForm; ?>">
				<div id="error" class="ui-state-highlight" style="display:none;"></div>
				<p class="validateTips">Todos os campos s&atilde;o obrigat&oacute;rios.</p>
				<fieldset>
					<form>
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tr>
								<td width="40%">
									<label for="nome">Nome *</label>
									<br />
									<input type="text" name="nome" id="nome" class="text ui-widget-content ui-corner-all" size="40" />
								</td>
								<td>
									<label for="id_conta_fk">Conta</label>
									<br />
									<input type="text" name="id_conta_fk" id="id_conta_fk" class="text ui-widget-content ui-corner-all" size="7" onchange="changeAccountContatos();" /> 
									<a href="javascript:openAccountContatosUniq();" title="Clique para selecionar a Conta">
										<img src="<?php echo base_url();?>images/ico/table_tab_search.png" width="24" />
									</a> 
									<span id="span_conta">&nbsp;</span>
								</td>
							</tr>
							<tr height="10px">
								<td>&nbsp;</td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td>
									<label for="departamento">Departamento</label>
									<br />
									<input type="text" name="departamento" id="departamento" class="text ui-widget-content ui-corner-all" size="40" />
								</td>
								<td>
									<label for="data_nascimento">Data Nascimento</label>
									<br />
									<input type="text" name="data_nascimento" id="data_nascimento" class="text ui-widget-content ui-corner-all" size="11" />
								</td>
							</tr>
							<tr height="10px">
								<td>&nbsp;</td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td colspan="2">
									<label for="id_contato_fk">Contato</label>
									<br />
									<input type="text" name="id_contato_fk" id="id_contato_fk" class="text ui-widget-content ui-corner-all" size="7" onchange="changeContactContatos('new');" /> 
									<a href="javascript:openContactContatosUniq();" title="Clique para selecionar a Contato">
										<img src="<?php echo base_url();?>images/ico/table_tab_search.png" width="24" />
									</a> 
									<span id="span_contato">&nbsp;</span>
								</td>
							</tr>
							<tr height="10px">
								<td>&nbsp;</td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td colspan="2">
                                    <div id="tabs-contato">
                                    	<ul>
                                    		<li><a href="#tabs-1">Contato</a></li>
                                    		<li><a href="#tabs-2">Endere&ccedil;o</a></li>
                                    		<li><a href="#tabs-3">Observa&ccedil;&otilde;es</a></li>
                                    	</ul>
                                    	<div id="tabs-1">
                                    		<table border="0" cellpadding="0" cellspacing="3" width="100%">
                                    			<tr>
                                    				<td>
                                                		<table border="0" cellpadding="0" cellspacing="3" width="100%">
                                                			<tr>
                                                				<td>
                                									<label for="telefone">Telefone</label>
                                									<br />
                                									<input type="text" name="telefone" id="telefone" alt="phone" class="text ui-widget-content ui-corner-all" size="15" />
                                                				</td>
                                    							<td width="3px">&nbsp;</td>
                                                				<td>
                                									<label for="celular">Celular</label>
                                									<br />
                                									<input type="text" name="celular" id="celular" alt="phone" class="text ui-widget-content ui-corner-all" size="15" />
                                                				</td>
                                    							<td width="3px">&nbsp;</td>
                                                				<td>
                                									<label for="fax">Fax</label>
                                									<br />
                                									<input type="text" name="fax" id="fax" alt="phone" class="text ui-widget-content ui-corner-all" size="15" />
                                                				</td>
                                                			</tr>
                                                		</table>
                                                	</td>
                                                </tr>
                                    			<tr>
                                    				<td>
                                    					<table border="0" cellpadding="0" cellspacing="3" width="100%">
                                    						<tr>
                                    							<td>
                                									<label for="email">E-mail</label>
                                									<br />
                                									<input type="text" name="email" id="email" class="text ui-widget-content ui-corner-all" size="40" />
                                    							</td>
                                    						</tr>
                                    					</table>
                                    				</td>
                                    			</tr>
                    							<tr>
                    								<td>
     													<table border="0" cellpadding="0" cellspacing="3" width="100%">            									
                                							<tr>
                                								<td>
                                 									<label for="assistente">Assistente</label>
                                									<br />
                                									<input type="text" name="assistente" id="assistente" class="text ui-widget-content ui-corner-all" size="40" />
                                								</td>
                                    							<td width="3px">&nbsp;</td>
                                								<td>
                                									<label for="telefone_assistente">Telefone</label>
                                									<br />
                                									<input type="text" name="telefone_assistente" id="telefone_assistente" alt="phone" class="text ui-widget-content ui-corner-all" size="15" />
                                								</td>
                                							</tr>
                    									</table>
                    								</td>
                    							</tr>
                                    		</table>
                                    	</div>
                                    	<div id="tabs-2">
                                    		<table border="0" cellpadding="0" cellspacing="3" width="100%">
                                    			<tr>
                                    				<td valign="top">
                                    					<table border="0" cellpadding="0" cellspacing="3" width="100%">
                                    						<tr>
                                    							<td>
                                									<label for="endereco">Endere&ccedil;o</label>
                                									<br />
                                									<input type="text" name="endereco" id="endereco" class="text ui-widget-content ui-corner-all" size="40" />
                                    							</td>
                                    							<td width="3px">&nbsp;</td>
                                    							<td>
                                									<label for="numero">N&uacute;mero</label>
                                									<br />
                                									<input type="text" name="numero" id="numero" class="text ui-widget-content ui-corner-all" size="5" />
                                    							</td>
                                    						</tr>
                                    					</table>
                                    					<table border="0" cellpadding="0" cellspacing="3" width="100%">
                                    						<tr>
                                    							<td>
                                									<label for="bairro">Bairro</label>
                                									<br />
                                									<input type="text" name="bairro" id="bairro" class="text ui-widget-content ui-corner-all" size="20" />
                                    							</td>
                                    							<td width="3px">&nbsp;</td>
                                    							<td>
                                									<label for="cidade">Cidade</label>
                                									<br />
                                									<input type="text" name="cidade" id="cidade" class="text ui-widget-content ui-corner-all" size="25" />
                                    							</td>
                                    						</tr>
                                    					</table>
                                    					<table border="0" cellpadding="0" cellspacing="3" width="100%">
                                    						<tr>
                                    							<td>
                                									<label for="cep">CEP</label>
                                									<br />
                                									<input alt="cep" type="text" name="cep" id="cep" class="text ui-widget-content ui-corner-all" size="10" />
                                    							</td>
                                    							<td width="3px">&nbsp;</td>
                                    							<td>
                                									<label for="estado">Estado</label>
                                									<br />
                                									<select name="estado" id="estado" class="select ui-widget-content ui-corner-all">
                                										<option value=""></option>
                                									<?php 
                                									foreach ($estados as $dados) 
                                									{
                                									?>
                                										<option value="<?php echo $dados[0]; ?>"><?php echo $dados[1]; ?></option>
                                									<?php
                                									}
                                									?>
                                									</select>
                                    							</td>
                                    						</tr>
                                    					</table>
                                    				</td>
                                    				<td width="3px">&nbsp;</td>
                                    				<td>
                    									<label for="complemento">Complemento</label>
                    									<br />
                    									<textarea name="complemento" id="complemento" class="textarea ui-widget-content ui-corner-all" rows="5" cols="30"></textarea>
                                    				</td>
                                    			</tr>
                                    		</table>
                        		        </div>
                                    	<div id="tabs-3">
                    						<textarea name="observacoes" id="observacoes" class="textarea ui-widget-content ui-corner-all" rows="6" cols="105"></textarea>
                                    	</div>
                                    </div>
								</td>
							</tr>
						</table>
    					<input type="hidden" id="hid_oper" value="" />
						<input type="hidden" id="id_contato" value="" />
    				</form>
				</fieldset>
			</div>
        </td>
        <!-- X BOX DIREITO -->